// router/index.ts
import { createRouter, createWebHashHistory } from 'vue-router'

export const routes = [
    {
        path: '/',
        redirect: '/home',
    },
    {
        name: 'home',
        path: '/home',
        component: () => import("@/home/index.vue")
    },

]

const router = createRouter({
      scrollBehavior: () => ({ left: 0, top: 0 }),
      history: createWebHashHistory(),
      routes,
})


router.beforeEach((_to, _from, next) => {
    next()
})
export default router